Optimal. Leaf size=41 \[ -\frac{1}{2} \text{PolyLog}\left (2,-x^2\right )-\frac{1}{4} \log ^2\left (x^2+1\right )-\frac{\log \left (x^2+1\right ) \tan ^{-1}(x)}{x}+\tan ^{-1}(x)^2 \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.125174, antiderivative size = 41, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 12, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 1., Rules used = {4852, 266, 36, 29, 31, 5017, 2475, 2410, 2390, 2301, 2391, 4884} \[ -\frac{1}{2} \text{PolyLog}\left (2,-x^2\right )-\frac{1}{4} \log ^2\left (x^2+1\right )-\frac{\log \left (x^2+1\right ) \tan ^{-1}(x)}{x}+\tan ^{-1}(x)^2 \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4852
Rule 266
Rule 36
Rule 29
Rule 31
Rule 5017
Rule 2475
Rule 2410
Rule 2390
Rule 2301
Rule 2391
Rule 4884
Rubi steps
\begin{align*} \int \frac{\tan ^{-1}(x) \log \left (1+x^2\right )}{x^2} \, dx &=-\frac{\tan ^{-1}(x) \log \left (1+x^2\right )}{x}+2 \int \frac{\tan ^{-1}(x)}{1+x^2} \, dx+\int \frac{\log \left (1+x^2\right )}{x \left (1+x^2\right )} \, dx\\ &=\tan ^{-1}(x)^2-\frac{\tan ^{-1}(x) \log \left (1+x^2\right )}{x}+\frac{1}{2} \operatorname{Subst}\left (\int \frac{\log (1+x)}{x (1+x)} \, dx,x,x^2\right )\\ &=\tan ^{-1}(x)^2-\frac{\tan ^{-1}(x) \log \left (1+x^2\right )}{x}+\frac{1}{2} \operatorname{Subst}\left (\int \left (\frac{\log (1+x)}{-1-x}+\frac{\log (1+x)}{x}\right ) \, dx,x,x^2\right )\\ &=\tan ^{-1}(x)^2-\frac{\tan ^{-1}(x) \log \left (1+x^2\right )}{x}+\frac{1}{2} \operatorname{Subst}\left (\int \frac{\log (1+x)}{-1-x} \, dx,x,x^2\right )+\frac{1}{2} \operatorname{Subst}\left (\int \frac{\log (1+x)}{x} \, dx,x,x^2\right )\\ &=\tan ^{-1}(x)^2-\frac{\tan ^{-1}(x) \log \left (1+x^2\right )}{x}-\frac{\text{Li}_2\left (-x^2\right )}{2}-\frac{1}{2} \operatorname{Subst}\left (\int \frac{\log (x)}{x} \, dx,x,1+x^2\right )\\ &=\tan ^{-1}(x)^2-\frac{\tan ^{-1}(x) \log \left (1+x^2\right )}{x}-\frac{1}{4} \log ^2\left (1+x^2\right )-\frac{\text{Li}_2\left (-x^2\right )}{2}\\ \end{align*}
Mathematica [A] time = 0.0097258, size = 41, normalized size = 1. \[ -\frac{1}{2} \text{PolyLog}\left (2,-x^2\right )-\frac{1}{4} \log ^2\left (x^2+1\right )-\frac{\log \left (x^2+1\right ) \tan ^{-1}(x)}{x}+\tan ^{-1}(x)^2 \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 1.354, size = 0, normalized size = 0. \begin{align*} \int{\frac{\arctan \left ( x \right ) \ln \left ({x}^{2}+1 \right ) }{{x}^{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.47988, size = 78, normalized size = 1.9 \begin{align*} -{\left (\frac{\log \left (x^{2} + 1\right )}{x} - 2 \, \arctan \left (x\right )\right )} \arctan \left (x\right ) - \arctan \left (x\right )^{2} + \frac{1}{2} \, \log \left (-x^{2}\right ) \log \left (x^{2} + 1\right ) - \frac{1}{4} \, \log \left (x^{2} + 1\right )^{2} + \frac{1}{2} \,{\rm Li}_2\left (x^{2} + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\arctan \left (x\right ) \log \left (x^{2} + 1\right )}{x^{2}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] time = 87.8367, size = 37, normalized size = 0.9 \begin{align*} - \frac{\log{\left (x^{2} + 1 \right )}^{2}}{4} + \operatorname{atan}^{2}{\left (x \right )} - \frac{\operatorname{Li}_{2}\left (x^{2} e^{i \pi }\right )}{2} - \frac{\log{\left (x^{2} + 1 \right )} \operatorname{atan}{\left (x \right )}}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\arctan \left (x\right ) \log \left (x^{2} + 1\right )}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]